package com.bsoft.template.web.process;

import com.bsoft.template.common.Result;
import com.bsoft.template.service.process.ProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("process")
public class ProcessController {

    @Autowired
    private ProcessService processService;

    @GetMapping("getProcessList")
    public Result getProcessList() {
        return new Result().ok().data(processService.getProcessList());
    }
}
